public class zhuanzhi{
	public static void main(String args[]){
		int a[][]={{1,2,3},{4,5,6},{7,8,9}};
		System.out.print("转前-----------");
		System.out.println();
		for(int i=0;i<3;i++){
			for(int j=0;j<3;j++){
		   System.out.print(a[i][j]);
			}
			System.out.println();
		}
		System.out.print("转后-----------");
		System.out.println();
		for(int i=0;i<3;i++){
			for(int j=0;j<3;j++){
		   System.out.print(a[j][i]);
			}
			System.out.println();
		}